<?php
    /**
     * Created by PhpStorm.
     * User: Quyet
     * Date: 12/5/2014
     * Time: 10:04 AM
     */
include "dbInfor.php";

// Create connection
    $conn = mysql_connect($servername, $username, $password);

// Check connection
    if (!$conn) {
        die("Connection failed: " .mysql_error());
    }

    $db_selected = mysql_select_db($dbName, $conn);
    mysql_set_charset('utf8',$conn);
    if (!$db_selected) {
        die ('DB not found: ' . mysql_error());
    }

?>